<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ page import="java.util.List"%>
<%@ page isELIgnored="false" %> <%--isELIgnored=true禁用EL表达式--%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../layui-v2.6.13/layui/css/layui.css"/>
		<script type="text/javascript" src="../layui-v2.6.13/layui/layui.js"></script>
		<style>
			body{
				margin: 0;
				padding: 0;
			}
			.layui-container{
				width: 100%;
				margin: 0 auto;
			}
		</style>
		<script type="text/javascript" src="../js/jquery.min-2.1.1.js"></script>
		
		<script>
			function test(){
				layui.use('layer',function(){
					layer.open({
					  type: 2, 
					  title: '增加',
					  content: 'insert.jsp',
					  area:['1000px','500px']
					});
				})
			}
			
		</script>
		<link rel="shortcut icon" href="#"/>
	</head>
	<body>
		<div class="layui-container">
			<div class="layui-row layui-bg-black" style="height: 40px; ">
				<div class="layui-col-md11" style="margin-top:10px;">
				&nbsp;&nbsp;&nbsp;&nbsp;
				商城后台管理系统
				</div>
				<div class="layui-col-md1" style="margin-top:10px;">
					用户名: ${mName}
				</div>
			</div>
			<div class="layui-row">
				<!-- 左侧导航栏 -->
				<div class="layui-col-md1 layui-bg-cyan" style="height: 700px;">
					<!-- 
					layui-nav-side 侧边导航栏 
					lay-shrink="all" 实现手风琴效果
					layui-nav-itemed 默认展开
					-->
					<ul class="layui-nav layui-nav-tree layui-bg-cyan" lay-shrink="all" style="width: 100%;">
						<c:if test="${mLevel== 1}">
						<li class="layui-nav-item ">
							<a href="javascript:;">管理员</a>
							<dl class="layui-nav-child">
								<dd><a href="list" target="main">管理员列表</a></dd>
                            </dl>
						</li>
						</c:if>
						<li class="layui-nav-item">
							<a href="javascript:;">分类管理</a>
							<dl class="layui-nav-child">
								<dd><a href="/tree/page" target="main">商品分类</a></dd>
							</dl>
 						</li>
 						<li class="layui-nav-item">
                            <a href="javascript:;">商品管理</a>
                            <dl class="layui-nav-child">
                                <dd><a href="/goods/list" target="main">商品列表</a></dd>
                                <dd><a href="/goods/insertPage" target="main">新增商品</a></dd>
                                <dd><a href="/goods/listOff" target="main">下架商品</a></dd>
                            </dl>
                        </li>
                        <li class="layui-nav-item">
                            <a href="javascript:;">订单管理</a>
                            <dl class="layui-nav-child">
                                <dd><a href="/order/query" target="main">订单列表</a></dd>
                                <dd><a href="/order/refundPage?orderStatus=5" target="main">退款</a></dd>
                            </dl>
                        </li>
					</ul>
				</div>
				<!-- 右侧页面内容 -->
				<div class="layui-col-md11" style="background-color: white;">
					<iframe src="/goods/list" style="width: 100%; height: 700px; border: none;" name="main"></iframe>
				</div>
			</div>
		</div>
	</body>
</html>